/*
 * Copyright (C) 2008-2009 the original author or authors
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *         http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.code.liquidform.itest.jsr220doc;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.OneToMany;

@Entity
public class Customer {

	private String country;

	private Address address;

	public Address getAddress() {
		return address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

	private Long id;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	private Integer filledOrderCount;

	public Integer getFilledOrderCount() {
		return filledOrderCount;
	}

	public void setFilledOrderCount(Integer filledOrderCount) {
		this.filledOrderCount = filledOrderCount;
	}

	private String firstname;

	private String lastname;

	private Set<Order> orders;

	private Integer status;

	private Double balanceOwed;

	public Double getBalanceOwed() {
		return balanceOwed;
	}

	public void setBalanceOwed(Double balanceOwed) {
		this.balanceOwed = balanceOwed;
	}

	private Short hatsize;

	public Short getHatsize() {
		return hatsize;
	}

	public void setHatsize(Short hatsize) {
		this.hatsize = hatsize;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@OneToMany(mappedBy = "customer")
	public Set<Order> getOrders() {
		return orders;
	}

	public void setOrders(Set<Order> orders) {
		this.orders = orders;
	}

	public String getFirstname() {
		return firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}
}
